cmake_minimum_required(VERSION 3.28.1)
project(imgui-music)

set(CMAKE_CXX_STANDARD 17)

include_directories(${PROJECT_SOURCE_DIR}/imgui)
include_directories(${PROJECT_SOURCE_DIR}/bass/include)
link_directories(${PROJECT_SOURCE_DIR}/bass/lib)

aux_source_directory("${PROJECT_SOURCE_DIR}/src/" sources)
aux_source_directory("${PROJECT_SOURCE_DIR}/imgui/" imguiSources)

link_libraries(d3d12 d3dcompiler dxgi bass bassflac)

add_executable(${PROJECT_NAME} ${sources} ${imguiSources})

add_custom_command(TARGET ${PROJECT_NAME} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory "${PROJECT_SOURCE_DIR}/bass/bin" $<TARGET_FILE_DIR:${PROJECT_NAME}>)